﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script type="text/javascript">
        var digit = 5;
        switch (digit) {
            case 0: document.writeln("Zero"); break;
            case 1: document.writeln("One"); break;
            case 2: document.writeln("Two"); break;
            case 3: document.writeln("Three"); break;
            case 4: document.writeln("Four"); break;
            case 5: document.writeln("Five"); break;
            case 6: document.writeln("Six"); break;
            case 7: document.writeln("Seven"); break;
            case 8: document.writeln("Eight"); break;
            case 9: document.writeln("Nine"); break;
            default: document.writeln("Not a digit!");
                break;
        }
    </script>
</body>
</html>
